package Modelos;

import java.util.ArrayList;
import java.util.Observable;
import logicGame.Cards.Card;
import logicGame.Game;

public class ModeloCartas extends Observable {

    Game g;

    public ModeloCartas(Game g) {
        this.g = g;
    }

    public ArrayList<Card> getAllBoardDeck() {
        return g.getAllBoardDeck();
    }

    public boolean checkMovement(int init, int end) {
        return g.checkAction(init, end);
    }
    
    public Card getlast(){
        return g.getActivePlayer().getLastCard();
    }    

    public void buyCard(int n) {
        g.buyCard(n);
        setChanged();
        notifyObservers();
    }

}
